<template>
  <div>
    <vol-box :lazy="true" v-model="dialogVisible" :title=title :height="600" :width="1200" :padding="1" :draggable="true">
      <div>
       <yg_custom_bom ref="yg_custom_bom"></yg_custom_bom>
      </div>
      <template #footer>
        <div>
         <!--  <el-button type="primary" size="mini" v-show="isshow1" @click="get_all_req_list">保存</el-button> -->
          <el-button type="default" size="mini" @click="dialogVisible = false">关闭</el-button>

        </div>
      </template>
    </vol-box>
  </div>
</template>
<script>
import VolBox from "@/components/basic/VolBox.vue";
import { ElMessage, ElMessageBox } from 'element-plus';
import abc from "@/uitils/h_common.js";//这是默认的写法
import yg_custom_bom from '@/views/mytable/jrtable/yg_custom_bom.vue'////

export default {
  components: { VolBox, abc,yg_custom_bom },
  data() {
    return {
      title: "",
      dialogVisible: false,
       tableData: []
    };
  },
  setup() { },
  destroyed() { },
  mounted() {
    this.$nextTick(() => {
      //console.log(this.$store.getters.data().MOBBH);
    });
  },
  methods: {
    show_w() {
      this.$nextTick(() => {
        this.title="自定义客户化BOM";
        this.dialogVisible=true;
         this.$refs.yg_custom_bom.$refs.grid.search();
        /* const loading = this.$loading({//等待
            lock: true,
            text: 'Loading',
            spinner: 'el-icon-loading',
            background: 'rgba(0, 0, 0, 0.7)'
          });
        var turl = "/api/yg_jsgf_head/get_yg_custom_bom?xiangm=" + this.$store.getters.data().xiangm;
        this.http.post(turl, {}, true).then((s) => {
            
          this.tableData = s.yg_custom_bom;//规范明细
          console.log(s.yg_custom_bom);
          loading.close();//关闭等待
          this.title = this.title + "-"+this.$store.getters.data().xiangm
          this.dialogVisible = true;
          
        }); */
      });
    }
  }
};
</script>
